home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / device.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-08  |  1.2 KB  |  38 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ADevice wrapper class                                                     *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_Device_H
  12. #define ASAP_Device_H
  13.  
  14. extern "C"
  15. {
  16.  #include <EXEC/Devices.h>
  17.  #include <Proto/EXEC.h>
  18. }
  19.  
  20. class ADevice : public Device
  21. {
  22.  public:
  23.  inline void AddDevice();
  24.  inline void RemDevice();
  25. };
  26. //----------------------------------------------------------------------------
  27. void ADevice::AddDevice ()
  28. {
  29.  ::AddDevice(this);
  30. }
  31. //----------------------------------------------------------------------------
  32. void ADevice::RemDevice ()
  33. {
  34.  ::RemDevice(this);
  35. }
  36.  
  37. #endif
  38.